package com.chixing.day04_oop.computer;

public class TestComputer {
    public static void main(String[] args) {
        Cpu cpu1 = new Cpu();
        cpu1.setCpuId(1);
        cpu1.setCpuModel("i7-8750");
        cpu1.setCpuFactory("Inter");

        Cpu cpu2=new Cpu(2,"i7-11800","Inter");

        Cpu cpu3 = new Cpu();
        cpu3.setCpuId(3);
        cpu3.setCpuModel("i7-89950");
        cpu3.setCpuFactory("Inter");

        Cpu cpu4=new Cpu(4,"i7-1000","Inter");

        System.out.println(cpu1);
        System.out.println(cpu2);
        System.out.println(cpu3);
        System.out.println(cpu4);

        VideoCard videoCard=new VideoCard(1,"3060","AMD");
        //2.输出主板MainBoard信息
        MainBoard mainBoard=new MainBoard(cpu1,videoCard);
        System.out.println(mainBoard);

        //3输出Computer具体信息
        Computer computer=new Computer(mainBoard);
        System.out.println(computer);
    }
}
